$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 220/$f+vw 200/$f+vw  120/$f+vw 200/$f+vw;

    .links {
      display: flex;

      a,
      p,
      span {
        color: #B8B8B8;
        font-size: 24/$f+vw;
        text-transform: uppercase;
      }

      a {
        transition: all 600ms;

        &:hover {
          color: #E60012;
        }
      }

      span {
        margin: 0 1vw;
      }
    }

    .t {
      color: #000;
      font-size: 64/$f+vw;
      font-weight: 600;
      text-transform: uppercase;
      margin: 1.5vw 0 3.5vw 0;
    }

    .allItems {
      .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4vw;
        .pic {
          width: 46%;
          overflow: hidden;
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }

        .info {
          width: 46%;

          .p1 {
            color: #888;
            font-size: 20/$f+vw;
            font-weight: 500;
            letter-spacing: 2/$f+vw;
          }

          .p2 {
            color: #3979C0;
            font-size: 40/$f+vw;
            font-weight: 600;
            position: relative;
            padding: 1.2vw 0;

            &::after {
              content: '';
              display: block;
              position: absolute;
              width: 141/$f+vw;
              height: 4/$f+vw;
              left: 0;
              bottom: 0;
              background: #000;
              transition: all 600ms;
            }
          }

          .des {
            color: #000;
            font-size: 20/$f+vw;
            line-height: 1.6;
            margin: 1.5vw 0;
          }

          .more {
             display: flex;
             align-items: center;
             transition: all 500ms;
             background: #F6F6F6;
             width: fit-content;
             padding: 1vw 2.5vw;
             p{
              color: #333;
              font-size: 20/$f+vw;
              font-weight: 500;
              transition: all 500ms;
             }
             svg{
              width: 20/$f+vw;
              margin-left: 1vw;
              path{
                transition: all 500ms;
                stroke:#333333;
              }
             }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .info{
            .p2{
              &::after{
                background: #E60012;
              }
            }
            .more{
              background: #E60012;
              p{
                color:white;
              }
              svg{
                path{
                  stroke: white;
                }
              }
            }
          }
        }
      }
      .item:nth-child(2n){
        flex-direction: row-reverse;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 100px;
    .main{
      margin: 0 5%;
      .links{
        a,p,span{
          font-size: 16px;
        }
      }
      .t{
        font-size: 26px;
        margin: 20px 0 40px 0;
      }
      .allItems{
        margin-bottom: 60px;
        .item{
          flex-direction: column;
          margin-bottom: 30px;
          .pic{
            width: 100%;
          }
          .info{
            width: 100%;
            margin-top: 25px;
            .p1{
              font-size: 16px;
            }
            .p2{
              font-size: 20px;
              padding: 15px 0;
              &::after{
                width: 60px;
                height: 2px;
              }
            }
            .des{
              font-size: 14px;
              margin: 15px 0;
            }
            .more{
              padding: 10px 20px;
              p{
                font-size: 16px;
              }
              svg{
                width: 15px;
                margin-left: 10px;
              }
            }
          }
        }
        .item:nth-child(2n){
          flex-direction: column;
        }
      }
    }
  }
}